/*
 * date: 2009-11-20 
 * author: Maciej Smolenski <jezdnia@gmail.com>
 */
#ifndef _RPC_COMMON_DATA_HPP_
#define _RPC_COMMON_DATA_HPP_

#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/allocators/allocator.hpp>
#include <boost/interprocess/containers/string.hpp>
#include "rpc_common_data.hpp"

namespace bi = boost::interprocess;

typedef bi::managed_shared_memory::allocator<char>::type shm_char_allocator;
typedef bi::basic_string<char, std::char_traits<char>, shm_char_allocator> shm_string;

enum state_t { state_on=0, state_off };
typedef long protocol_t;

enum result_t { result_failure=-1, result_success=0 };

#endif
